package com.nation.utils;

import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by YeziAny on 2017/11/4.
 */
public class TestHandleZIP {

    public static void main(String[] args) {
        HandleZIP handleZIP=new HandleZIP();
        File fileZIP=new File("F:"+ HandleZIP.SEPARATOR +"nationalFlags.zip");
        List<String>picture_paths=new ArrayList<String>();
        try {
            picture_paths=handleZIP.unzip(fileZIP,"F:"+ HandleZIP.SEPARATOR ,"nationalFlags");
        } catch (IOException e) {
            e.printStackTrace();
        }finally {
            for (String pic:picture_paths){
                System.out.println("图片地址为"+pic);
                System.out.println(ReadAndStoreFile.getImgName(pic));
            }

        }
    }
}
